package group32.server;

import java.util.ArrayList;

import group32.server.DBQuery;
import group32.shared.User;
import group32.client.RegistrationService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings("serial")
public class RegistrationServiceImpl extends RemoteServiceServlet implements RegistrationService{

	 public boolean saveUser(User user) {
         
         DBQuery db = new DBQuery();
         boolean bol = db.saveUser(user);
         
         return bol;
 }

	@Override
	public ArrayList<User> getFaculty() {
	     
        DBQuery db = new DBQuery();
        ArrayList<User> dropdown = db.getFaculty();
        
        return dropdown;
	}
}
